php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#200087 - 05/17/03 02:24 AM [6.4 - 6.5] Signature Preview
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Modification Name: [6.4 and 6.5] Signature Preview

Author(s): AllenAyres

Description: Allows you to preview your signature within your profile

Demo: http://www.ubbdev.com

Requirements: vars_wordlets_mods

Download Link: http://www.ubbdev.com/ubb/upload/00000494/sig_preview.txt

Credits: Mastermind for Original Version

Notes: Tested with 6.5 (here), should work 6.4+ smile

Updates: 5-17-03 - updated with xhtml fixes smile
_________________________
- Allen wavey
- What Drives You?

Top
#200088 - 05/17/03 02:43 AM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Is there any way you could do something like the Preview Post button for the profile, so that you could see the sig while editing, cause it doesn't update while you are editing, it shows you your sig that you are changing, so you still have to click update.

It would be awesome if you could add the button smile

Top
#200089 - 05/17/03 02:56 AM Re: [6.4 - 6.5] Signature Preview
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Good job, looks great smile

Tho Allen not XHTMLing the hacks he ports? (the first step)
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#200090 - 05/17/03 07:50 AM Re: [6.4 - 6.5] Signature Preview
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
bug: if you have smilies in your signature it tries to find them in ubbcgi dir instead of noncgi... fix: you have to use base href to noncgi dir, or use: (pretty lame but the only other choice; untested in this case)[code][/code]
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#200091 - 05/17/03 10:52 AM Re: [6.4 - 6.5] Signature Preview
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
ARGGHH... missed the xhtml. I was working on 3 different files and missed that </font> tipsy

Your replacement would go in the ubb_profile.cgi section?
_________________________
- Allen wavey
- What Drives You?

Top
#200092 - 05/17/03 10:56 AM Re: [6.4 - 6.5] Signature Preview
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
yes, I think...
btw the XHTML thing is:[code][/code]it should be <img src="$2" alt=" - " /> or something
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#200093 - 05/17/03 11:39 AM Re: [6.4 - 6.5] Signature Preview
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
danke, updated with your's and my fixes for xhtml tipsy
_________________________
- Allen wavey
- What Drives You?

Top
#200094 - 05/17/03 11:43 AM Re: [6.4 - 6.5] Signature Preview
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Quote:
quote:
Originally posted by Weird Al:
Is there any way you could do something like the Preview Post button for the profile, so that you could see the sig while editing, cause it doesn't update while you are editing, it shows you your sig that you are changing, so you still have to click update.

It would be awesome if you could add the button smile
This reads your profile and shows the signature... you won't see the new one until you update your profile. I don't think your idea is possible, tho it might be with some javascript magic. smile
_________________________
- Allen wavey
- What Drives You?

Top
#200095 - 05/17/03 05:45 PM Re: [6.4 - 6.5] Signature Preview
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
It basically is possible with javascript, but then you have to add all UBB codes to javascript tipsy
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#200096 - 05/17/03 06:21 PM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Quote:
quote:
Originally posted by LK:
It basically is possible with javascript, but then you have to add all UBB codes to javascript tipsy
is that possible? **has no clue about anything you're talking about, just likes to use hacks**

Top
#200097 - 05/17/03 07:11 PM Re: [6.4 - 6.5] Signature Preview
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
It's possible, but would be one huge piece of javascript that probably couldn't be guaranteed to work in most, let alone all, browsers tipsy
_________________________
- Allen wavey
- What Drives You?

Top
#200098 - 05/17/03 07:25 PM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Quote:
quote:
Originally posted by AllenAyres:
It's possible, but would be one huge piece of javascript that probably couldn't be guaranteed to work in most, let alone all, browsers tipsy
How does the preview post button work then?

Top
#200099 - 05/18/03 06:34 AM Re: [6.4 - 6.5] Signature Preview
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Ohh, you said you want a preview signature button, I thought you wanted it to be automatically updated when you type something.. then it's possible to do it in perl, like preview post..
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#200100 - 05/18/03 08:02 AM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Quote:
quote:
Originally posted by LK:
Ohh, you said you want a preview signature button, I thought you wanted it to be automatically updated when you type something.. then it's possible to do it in perl, like preview post..
sorry for the misconception, yes, I would love something like the Preview Post button, I think that would be easier cause when you update your sig, you are routed to the main forum, the you need to go through your Profile page to your edit profile page, which means you need to go through 3 pages to do something a popup could do

Top
#200101 - 05/19/03 10:54 PM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Quote:
quote:
Originally posted by LK:
Ohh, you said you want a preview signature button, I thought you wanted it to be automatically updated when you type something.. then it's possible to do it in perl, like preview post..
So can anyone do that?

Top
#200102 - 05/23/03 08:09 PM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
anyone?
if(user == Allen){come on Allen, you know you could do it laugh
} else if(user == LK){
come on LK, you know you could do it laugh }

Top
#200103 - 05/23/03 08:25 PM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Code:
[/code]shouldn't that be...

[code]

Top
#200104 - 05/28/03 07:39 PM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
anyone? I really think it would add a lot more functionality to this hack

Top
#200105 - 06/02/03 05:45 PM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
hey allen, would this require a port for the Colorforums hack? I can't find where it would but the pictures aren't showing up. I know I did it right cause I've checked teh code and I've gotten it to work before on a non-css board

Top
#200106 - 06/02/03 09:43 PM Re: [6.4 - 6.5] Signature Preview
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
What pictures do you mean?

I'm not skilled enough to write that code from the last page, but I'll update the code here for the color changes you mention above smile
_________________________
- Allen wavey
- What Drives You?

Top
#200107 - 06/02/03 10:18 PM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
in the sig preview, it will convert all ubbcode, but leave

[code][/code]I don't know why it does that, and since you have it working on css I was wondering if any changes were needed

Top
#200108 - 06/02/03 10:40 PM Re: [6.4 - 6.5] Signature Preview
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Shouldn't need changes for that... the conversion code for that is in ubb_lib_posting and the css stuff shouldn't touch that smile
_________________________
- Allen wavey
- What Drives You?

Top
#200109 - 06/02/03 10:46 PM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
that's what I thougt, darn *goes off to look at code*

Top
#200110 - 06/03/03 12:28 AM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
ok, now I'm completely confused. It'll convert ubbcode and graemlins, but not the [img] tag.

I checked and my img code stuff hasn't been changed in the reverse_ubb_code or prep_for_edit.

The sig looks right when in posts, and images are enabled in sigs. I have no clue what it could be frown

Top
#200111 - 07/23/03 06:22 AM Re: [6.4 - 6.5] Signature Preview
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
for some reason I missed this old thread...
anyhow, find:
Code:
	$user_profile[12] =~ s/(<img border="0" alt=".+?" title="" src=")(graemlins/.+?)(" />)/$1$vars_config{NonCGIURL}/$2$3/isg;
add below:
Code:
	$user_profile[12] =~ s/([IMG])(S+?)([/IMG])/&imageize($2)/eisg if $vars_display{AllowSignatureImage} ne 'no';
only half-tested, but should work smile
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#200112 - 07/23/03 09:03 AM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
*bows to LK*
Worked perfectly smile

Top
#200113 - 07/23/03 02:53 PM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
nm, it was my mistake

Top
#200114 - 07/25/03 07:45 PM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
ok, this is gonna sound weird, but the graemlins are messing up. They show up fine, but then show up as html in the sig textarea and is removed when it's updated. I didn't modify anything pertaining to graemlins, I don't know why it won't work

Top
#200115 - 08/02/03 01:14 AM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Code:
<img border="0" title="" alt="[Wink]" src="http://www.alforadmin.com/ubb/wink.gif" />
that's what shows up in the sig editing box, but it looks fine in the preview cell.

Any help?

ok, I looked and it's a problem with my ubb code itself, somehow calling gramelins has changed

Top
#200116 - 08/02/03 01:47 AM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
ok, after some tinkering I got this.

if I comment out...
Code:
	$user_profile[12] =~ s/(<img border="0" title="" alt=".+?" src=")(.+?)(" />)/$1$vars_config{NonCGIURL}/$2$3/isg;
then it doesn't convert to html when being edited, but it shows a red x and the url is noncgiURL/smile.gif etc.

If I comment out
Code:
	$user_profile[12] =~ s/(<img border="0" alt=".+?" title="" src=")(graemlins/.+?)(" />)/$1$vars_config{NonCGIURL}/$2$3/isg;
but not the first one, it shows up fine but becomes html when edited.

I have no problems when editing a post, or quoting a post, it's only in the sig, and when I remove the sig preview, it works fine

Top
#200117 - 08/13/03 07:05 PM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
there isn't a graemlinize that I don't know about is there?

Top
#200118 - 08/18/03 12:27 AM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
now that Allen and LK are back, can anyone help?

Top
#200119 - 08/31/03 12:06 AM Re: [6.4 - 6.5] Signature Preview
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
hey Allen, any chance of getting this updated? I noticed that UBBDEV's graemlins don't work in sig preview either

Top
Page 1 of 2 1 2 >



Moderator:  Charles, Gizmo 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks